
{if isset($smarty.session.association)}
    <div class="bandeau droite gras">
<a href="#">
Editer votre page
</a><br /><br />
<a href="#" onclick="return confirm('Etes-vous s&ucirc;r de vouloir vous d&eacute;connecter ?');">
Se d&eacute;connecter
</a>
</div>
{/if}

<div id="bloc_top">

   <div id="bloc_description">
        <div class="box527titlegrey"><h1>Description</h1></div>
        <div class="box527content">
             <div class="text">
                 <div class="logo"><img src="{$association.biglogo}" /></div>
                 <div class="support">
                        {if $user_support == true}
                        <img src="{$IMG_PATH}icones/soutenu.png" alt="" /><br />
                        {else}
                        <a href="javascript:;" class="addSupport" id="addSupport_{$association.id}"><img src="{$IMG_PATH}icones/visu-fan.png" />Soutenir</a>
                        {/if}
                </div>
                <div class="clear"></div>
            </div>
            <div class="text">
                <span class="bold">Th&egrave;me :</span>
                <span>{$association.theme}</span>
            </div>
            <div class="text">
                <span class="bold">Zone d'intervention :</span>
                <span>{$association.zone}</span>
            </div>
            <div class="text">
                <span class="bold">Mission :</span>
            <div class="clear"></div>
                <span>
                    {$association.mission|truncate:1000}
                </span>
            </div>
            <div class="text">
                <div class="newsletter">
                    <a href="{$association.newsletter}">Recevoir la newsletter</a>
                </div>
                <div class="about">
                    <a href="{$association.url}mission/" class="popup">En savoir plus</a>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="box527ass"></div>
   </div>

   <div id="bloc_video" >
        <div class="box408titleblue"><h1>Vid&eacute;os</h1></div>
        <div class="box408content">
            <div id="videoAssoc">
                <div class="mainVideo">
                    <script type="text/javascript">
                    getVideo('{$association.mainvideo.file}', '300','225');
                    </script>
                    <div id="videoPlayer">
                        <p>Ce contenu requiert Adobe Flash Player.</p>
                        <a href="http://www.adobe.com/go/getflashplayer/">Obtenir Flash</a>
                    </div>
                </div>
                <div id="videotitle" class="bold" >{$association.mainvideo.titre}</div>
                <div id="videoscore"><img src="{$association.mainvideo.imgnote}" /></div>
            </div>
            <div id="video-content" >{include file="association/slider_video.tpl"}</div>
            <div class="clear"></div>
        </div>
        <div class="box408ass"></div>
   </div>

</div>
<div id="bloc_bottom">

    <div id="bloc_bottom_left">

        <div id="bloc_workers" class="hidden">
        <div class="box408titleorange">
            <div class="bigtop-titre"><h1>Ils y travaillent</h1></div>
            <a href="#" class="voirtous">Voir tous ...</a>
            <div class="bigboxorange-nb">{$association.workers|@sizeof}</div>
        </div>
        <div class="box408content">
            <div id="listing_workers">
                {section name=k loop=$association.workers max=10}
                    <div class="worker">
                        {if $association.workers[k].allowclick==true}<a href="{$association.workers[k].url}">{/if}
                        <img src="{$association.workers[k].mini}" /><br />
                        <span class="small">{$association.workers[k].prenom} {$association.workers[k].nom|truncate:1:"":true}.</span>
                        {if $association.workers[k].allowclick==true}</a>{/if}
                    </div>
                {/section}
                <div id="join">
                    <div class="join hidden">
                        {if $user_work==true}
                            <a href="#" class="thickbox">
                            <img src="{$IMG_PATH}icones/soutenu.png" alt="" class="icones"/></a>
                            <div class="clear"></div>
                            <a href="#" class="bold">Se retirer</a>
                        {else}
                            <a href="#" class="restricted">
                            <img src="{$IMG_PATH}icones/visu-fan.png" alt="" class="icones"/></a>
                            <div class="clear"></div>
                            <a href="#" class="restricted bold">Rejoindre la liste</a>
                        {/if}
                        </div>
                        <div class="clear"></div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="box408ass"></div>
    </div>
    {if $association.news|@sizeof!=0}
    <div id="bloc_news" class="hidden">
        <div class="box408titleblue"><h1>Les derni&egrave;res news</h1></div>
        <div class="box408content">
            <div id="listing_news">
                {section name=k loop=$association.news max=10}
                     <div class="news"style="">
                        <a href="#" class="thickbox" class="link_news">
                             {$association.news[k].titre}
                        </a>
                        <span class="small">Publi&eacute; le {$association.news[k].added|date_format:"%e %b %Y"}</span>
                     </div>
                {/section}
            </div>
            <div class="clear"></div>
        </div>
        <div class="box408ass"></div>
      </div>
{/if}
      <div id="bloc_photos" class="hidden">
            <div class="box408titleblue">
                <div class="bigtop-titre"><h1>Photos</h1></div>
                <a href="#" class="voirtous">Voir tous ...</a>
                <div class="bigboxblue-nb">{$association.photos|@sizeof}</div>
            </div>
            <div class="box408content">
                <div id="listing_photos">
                    {section name=k loop=$association.photos max=9}
                        <div class="mini_photo">
                                <a href="#"><img src="{$association.photos[k].thumb}" /></a>
                        </div>
                    {/section}
                </div>
                <div class="clear"></div>
            </div>
            <div class="box408ass"></div>
      </div>

</div>

<div id="bloc_bottom_right">
    <div id="bloc_collect">
        <div class="box527titlegrey"><h1>&Eacute;tat de la collecte</h1></div>
        <div class="box527content">
            <div id="listing_collect">
                <div class="collect_informations">
                        <div class="association_state">
                                <div class="collect_state">
                                    <a title="{$association.pourcentage}% de l'objectif de financement atteint">
                                        <img src="{$association.clepsydre}" />
                                    </a>
                                </div>
                                <div class="pourcent">{$association.pourcentage} %</div>
                        </div>
                        <div class="funding">
                                <div>Demande de financement : {$association.financement} &euro;</div>
                                <div class="remains">Reste &agrave; collecter : {$association.financement-$association.montantTotal|string_format:"%d"} &euro;</div>
                        </div>
                </div>
                <div class="clear"></div>
                <div class="nb_supporters">
                        {$association.supporters|@sizeof}
                        Soutien{if $association.supporters|@sizeof>1}s{/if} dont :
                </div>
                <div class="supporters">
                    <div id="listing_supporters">
                        {section name=k loop=$association.supporters max=6}
                            <div class="supporter">
                                {if $association.supporters[k].allowclick==true}
                                    <a href="{$association.supporters[k].url}">
                                {/if}
                                    <img src="{$association.supporters[k].mini}" /><br />
                                    <span class="small">{$association.supporters[k].prenom} {$association.supporters[k].nom|truncate:1:"":true}.</span>
                                {if $association.supporters[k].allowclick==true}
                                    </a>
                                {/if}
                            </div>
                        {/section}
                    </div>
                    <div class="see_all hidden">
                        <a href="#">Voir tous...</a>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="box527ass"></div>
    </div>

     <div id="bloc_comments">
        {include file="association/comments.tpl"}
     </div>
    </div>
    <div class="clear"></div>
</div>